import fetch

import pandas as pd

def write_csv(uri: str):
    pd.DataFrame(fetch.load_animes(uri)).to_csv(uri.replace('/','')+'.csv',index=False,encoding='utf-8',header=True)